package com.bdqn.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * Storage
 *  入库记录表 实体类
 *  ch02 实战1 实现查询入库记录表的功能
 *
 * @aurhor Administrator  whs
 * @since 2024/6/18
 */
public class Storage implements Serializable {

    private int id ;              // '主键ID'
    private String srCode        ;   // '入库记录编码',
    private String goodsName     ;   // '商品名称',
    private String goodsDesc     ;   // '商品描述',
    private String goodsUnit     ;   // '商品单位',
    private double goodsCount    ;   // '入库数量',
    private double totalAmount   ;   // '入库商品总额',
    private int payStatus     ;      // '支付状态（1：未支付 2：已支付）',
    private int createdUserId ;     // '创建人id',
    private Date createdTime   ;   // '创建时间',
    private int updatedUserId ;   // '修改人id',
    private Date updatedTime   ;   // '修改时间',
    private int supplierId    ;   // '供货商ID'

    //实战2 添加supplierName 供货商名称字段
    private String supplierName ;  //供货商名称


    //实战3 添加Supplier的属性
    private Supplier supplier;



    public Storage() {
    }

    public Storage(String srCode, String goodsName, String goodsDesc, String goodsUnit, double goodsCount, double totalAmount, int payStatus, int createdUserId, Date createdTime, int updatedUserId, Date updatedTime, int supplierId) {
        this.srCode = srCode;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.totalAmount = totalAmount;
        this.payStatus = payStatus;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
        this.supplierId = supplierId;
    }

    @Override
    public String toString() {
        return "Storage{" +
                "id=" + id +
                ", srCode='" + srCode + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsDesc='" + goodsDesc + '\'' +
                ", goodsUnit='" + goodsUnit + '\'' +
                ", goodsCount=" + goodsCount +
                ", totalAmount=" + totalAmount +
                ", payStatus=" + payStatus +
                ", createdUserId=" + createdUserId +
                ", createdTime=" + createdTime +
                ", updatedUserId=" + updatedUserId +
                ", updatedTime=" + updatedTime +
                ", supplierId=" + supplierId +
                ", supplierName='" + supplierName + '\'' +
                ", supplier=" + supplier +
                '}';
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSrCode() {
        return srCode;
    }

    public void setSrCode(String srCode) {
        this.srCode = srCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public double getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(double goodsCount) {
        this.goodsCount = goodsCount;
    }

    public double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public int getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(int payStatus) {
        this.payStatus = payStatus;
    }

    public int getCreatedUserId() {
        return createdUserId;
    }

    public void setCreatedUserId(int createdUserId) {
        this.createdUserId = createdUserId;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public int getUpdatedUserId() {
        return updatedUserId;
    }

    public void setUpdatedUserId(int updatedUserId) {
        this.updatedUserId = updatedUserId;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public int getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(int supplierId) {
        this.supplierId = supplierId;
    }
}
